package chixing.day07_inherited.HomeWork;


public class MyEmployee {
    private String empNo;
    private String empName;
    private double empBaseSalary;

    public MyEmployee(){}
    public MyEmployee(String empNo, String empName, double empBaseSalary) {
        this.empNo = empNo;
        this.empName = empName;
        this.empBaseSalary = empBaseSalary;
    }

    //方法calculateSalary()
    public void calculateSalary(){}
    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public double getEmpBaseSalary() {
        return empBaseSalary;
    }

    public void setEmpBaseSalary(double empBaseSalary) {
        this.empBaseSalary = empBaseSalary;
    }

    @Override
    public String toString() {
        return "MyEmployee{" +
                "empNo='" + empNo + '\'' +
                ", empName='" + empName + '\'' +
                ", empBaseSalary=" + empBaseSalary +
                '}';
    }
}
